home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Essentials of Interactive Physiology
/
Essentials of Interactive Physiology.iso
/
mac
/
files
/
code
/
evaluation.js
next >
Wrap
Text File
|
2004-10-18
|
1KB
|
34 lines
//******************
function doPrintable(xsStuffToPrint) {
setTimeout('openPrintWindow("' + xsStuffToPrint + '")', 1000);
}
//******************
function openPrintWindow(xsStuffToPrint) {
top.gsPrintable = gsPrintable + xsStuffToPrint;
gPrintWindow = open("printevaluation.html", "evaluation", "width=604,height=410,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=yes,resizable=yes");
}
//*********************
function printTest() {
var i, viNumLines, vaLines;
var vsPrintStuff = window.opener.gsPrintable;
vaLines = vsPrintStuff.split("#RETURN");
// /TYPE=a/TYPE=\\"a\\"/
viNumLines = vaLines.length;
document.writeln("<html>");
document.writeln("<HEAD><!-- saved from url=(0013)about:internet -->");
document.writeln("<title>" + vaLines[0] + "</title>");
document.writeln("</head>");
document.writeln("<body bgColor = #FFFFFF >");
for(i=1; i < viNumLines; i++){
document.write(vaLines[i]);
}
document.writeln("</body>");
document.writeln("</html>");
document.close();
window.opener.gsPrintable = "";
}